<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>ec: ec::Time Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">ec
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>ec</b></li><li class="navelem"><a class="el" href="classec_1_1Time.html">Time</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="classec_1_1Time-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">ec::Time Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>时间类  
 <a href="classec_1_1Time.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="date_8h_source.html">date.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a5a62816a9c7f2df3ca66f54d1544ea46"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Time.html#a5a62816a9c7f2df3ca66f54d1544ea46">PeriodType</a> { <br/>
&#160;&#160;<b>kPeriodNone</b> = 0, 
<a class="el" href="classec_1_1Time.html#a5a62816a9c7f2df3ca66f54d1544ea46a3077b99141eef7503633f22c0424bc8d">kPeriodMinute</a>, 
<a class="el" href="classec_1_1Time.html#a5a62816a9c7f2df3ca66f54d1544ea46a9f3a401b1323abb49064aeff0e106b12">kPeriodHour</a>, 
<a class="el" href="classec_1_1Time.html#a5a62816a9c7f2df3ca66f54d1544ea46a9a5100abd3e34402f2ee8bb574ce6372">kPeriodDay</a>, 
<br/>
&#160;&#160;<a class="el" href="classec_1_1Time.html#a5a62816a9c7f2df3ca66f54d1544ea46a54ad8e4b3e752368ee49fb1914d92822">kPeriodWeek</a>, 
<a class="el" href="classec_1_1Time.html#a5a62816a9c7f2df3ca66f54d1544ea46a9ece0fd6329295af0cdc2cc292f07d6d">kPeriodMonth</a>, 
<a class="el" href="classec_1_1Time.html#a5a62816a9c7f2df3ca66f54d1544ea46a7707ba1e8c424e40a551a48fdc1c3287">kPeriodYear</a>, 
<a class="el" href="classec_1_1Time.html#a5a62816a9c7f2df3ca66f54d1544ea46ac8bc99ab6b38d8deb3bba6353ba157ef">kPeriodMax</a>
<br/>
 }</td></tr>
<tr class="separator:a5a62816a9c7f2df3ca66f54d1544ea46"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ad71ce055dce14e6adbe3f1706c21f1ec"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Time.html#ad71ce055dce14e6adbe3f1706c21f1ec">Time</a> (time_t <a class="el" href="classec_1_1Time.html#a01d690a321ce3cdc18dc627761300c44">stamp</a>)</td></tr>
<tr class="separator:ad71ce055dce14e6adbe3f1706c21f1ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a20f81005d631383e457a8032517fdf26"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Time.html#a20f81005d631383e457a8032517fdf26">Time</a> (const <a class="el" href="classec_1_1Date.html">Date</a> &amp;date)</td></tr>
<tr class="separator:a20f81005d631383e457a8032517fdf26"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aea3741d25cd28cb6322f17da7f3b4b70"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aea3741d25cd28cb6322f17da7f3b4b70"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Time</b> (const <a class="el" href="classec_1_1Time.html">Time</a> &amp;time)</td></tr>
<tr class="separator:aea3741d25cd28cb6322f17da7f3b4b70"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a649973da162f122234542498d17cfa5f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Time.html#a649973da162f122234542498d17cfa5f">set</a> (time_t <a class="el" href="classec_1_1Time.html#a01d690a321ce3cdc18dc627761300c44">stamp</a>)</td></tr>
<tr class="separator:a649973da162f122234542498d17cfa5f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3abe7344a991a11875c565beb31c099f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classec_1_1Time.html">Time</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Time.html#a3abe7344a991a11875c565beb31c099f">clone</a> () const </td></tr>
<tr class="separator:a3abe7344a991a11875c565beb31c099f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a01d690a321ce3cdc18dc627761300c44"><td class="memItemLeft" align="right" valign="top">time_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Time.html#a01d690a321ce3cdc18dc627761300c44">stamp</a> () const </td></tr>
<tr class="separator:a01d690a321ce3cdc18dc627761300c44"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae1344f099583fe278563d3d5105025bf"><td class="memItemLeft" align="right" valign="top">time_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Time.html#ae1344f099583fe278563d3d5105025bf">utcStamp</a> () const </td></tr>
<tr class="separator:ae1344f099583fe278563d3d5105025bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af0bc39da85cdbf23c8513a1202d206ff"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classec_1_1Date.html">Date</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Time.html#af0bc39da85cdbf23c8513a1202d206ff">toDate</a> () const </td></tr>
<tr class="separator:af0bc39da85cdbf23c8513a1202d206ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a404a498705d89d99387c67b7a70f12b9"><td class="memItemLeft" align="right" valign="top">int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Time.html#a404a498705d89d99387c67b7a70f12b9">ms</a> () const </td></tr>
<tr class="separator:a404a498705d89d99387c67b7a70f12b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afcc17c2d59e9e7cbe996a8c7ae8f9fcd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classec_1_1Time.html">Time</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Time.html#afcc17c2d59e9e7cbe996a8c7ae8f9fcd">addSecond</a> (int second)</td></tr>
<tr class="separator:afcc17c2d59e9e7cbe996a8c7ae8f9fcd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add5a030523e1ea07021c81628ee545f6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classec_1_1Time.html">Time</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Time.html#add5a030523e1ea07021c81628ee545f6">sharpHour</a> ()</td></tr>
<tr class="separator:add5a030523e1ea07021c81628ee545f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acc1ad308e6af04151fcc85818a45936c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classec_1_1Time.html">Time</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Time.html#acc1ad308e6af04151fcc85818a45936c">sharpMinute</a> ()</td></tr>
<tr class="separator:acc1ad308e6af04151fcc85818a45936c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a126a19d88d9204dabad89a540de2ef94"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classec_1_1Time.html">Time</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Time.html#a126a19d88d9204dabad89a540de2ef94">nextPeriod</a> (<a class="el" href="classec_1_1Time.html#a5a62816a9c7f2df3ca66f54d1544ea46">Time::PeriodType</a> type, int times)</td></tr>
<tr class="separator:a126a19d88d9204dabad89a540de2ef94"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a672781d41bfac66415d3f91bbea6f453"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Time.html#a672781d41bfac66415d3f91bbea6f453">getFullDays</a> () const </td></tr>
<tr class="separator:a672781d41bfac66415d3f91bbea6f453"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3e049ae0ad518e44d72e86172f16e15d"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Time.html#a3e049ae0ad518e44d72e86172f16e15d">getDayPassed</a> (const <a class="el" href="classec_1_1Time.html">Time</a> &amp;refTime)</td></tr>
<tr class="separator:a3e049ae0ad518e44d72e86172f16e15d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr class="memitem:a7b380e6d270256754d650e7ab7a70237"><td class="memItemLeft" align="right" valign="top">static const time_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Time.html#a7b380e6d270256754d650e7ab7a70237">SECOND_MS</a> = 1000</td></tr>
<tr class="separator:a7b380e6d270256754d650e7ab7a70237"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a62df9dad0fe2b844c4402643bf41e99f"><td class="memItemLeft" align="right" valign="top">static const time_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Time.html#a62df9dad0fe2b844c4402643bf41e99f">MINUTE_SECONDS</a> = 60</td></tr>
<tr class="separator:a62df9dad0fe2b844c4402643bf41e99f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7235624a504da44bc4e361bc44184324"><td class="memItemLeft" align="right" valign="top">static const time_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Time.html#a7235624a504da44bc4e361bc44184324">HOUR_SECONDS</a> = 3600</td></tr>
<tr class="separator:a7235624a504da44bc4e361bc44184324"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aea1823b361d59f11f6a0a39b9cd4faea"><td class="memItemLeft" align="right" valign="top">static const time_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Time.html#aea1823b361d59f11f6a0a39b9cd4faea">DAY_SECONDS</a> = <a class="el" href="classec_1_1Time.html#a7235624a504da44bc4e361bc44184324">HOUR_SECONDS</a>*24</td></tr>
<tr class="separator:aea1823b361d59f11f6a0a39b9cd4faea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a785218cc22a7610f035cb6b36c84e62c"><td class="memItemLeft" align="right" valign="top">static const time_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Time.html#a785218cc22a7610f035cb6b36c84e62c">WEEK_SECONDS</a> = <a class="el" href="classec_1_1Time.html#aea1823b361d59f11f6a0a39b9cd4faea">DAY_SECONDS</a>*7</td></tr>
<tr class="separator:a785218cc22a7610f035cb6b36c84e62c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>时间类 </p>
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
<a class="anchor" id="a5a62816a9c7f2df3ca66f54d1544ea46"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classec_1_1Time.html#a5a62816a9c7f2df3ca66f54d1544ea46">ec::Time::PeriodType</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>时间周期类型枚举 </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="a5a62816a9c7f2df3ca66f54d1544ea46a3077b99141eef7503633f22c0424bc8d"></a>kPeriodMinute</em>&#160;</td><td class="fielddoc">
<p>无效的周期 </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="a5a62816a9c7f2df3ca66f54d1544ea46a9f3a401b1323abb49064aeff0e106b12"></a>kPeriodHour</em>&#160;</td><td class="fielddoc">
<p>周期 分 </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="a5a62816a9c7f2df3ca66f54d1544ea46a9a5100abd3e34402f2ee8bb574ce6372"></a>kPeriodDay</em>&#160;</td><td class="fielddoc">
<p>周期 小时 </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="a5a62816a9c7f2df3ca66f54d1544ea46a54ad8e4b3e752368ee49fb1914d92822"></a>kPeriodWeek</em>&#160;</td><td class="fielddoc">
<p>周期 天 </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="a5a62816a9c7f2df3ca66f54d1544ea46a9ece0fd6329295af0cdc2cc292f07d6d"></a>kPeriodMonth</em>&#160;</td><td class="fielddoc">
<p>周期 周 </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="a5a62816a9c7f2df3ca66f54d1544ea46a7707ba1e8c424e40a551a48fdc1c3287"></a>kPeriodYear</em>&#160;</td><td class="fielddoc">
<p>周期 月 </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="a5a62816a9c7f2df3ca66f54d1544ea46ac8bc99ab6b38d8deb3bba6353ba157ef"></a>kPeriodMax</em>&#160;</td><td class="fielddoc">
<p>周期 年 </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ad71ce055dce14e6adbe3f1706c21f1ec"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ec::Time::Time </td>
          <td>(</td>
          <td class="paramtype">time_t&#160;</td>
          <td class="paramname"><em>stamp</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>以时间戳构造 </p>

</div>
</div>
<a class="anchor" id="a20f81005d631383e457a8032517fdf26"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ec::Time::Time </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classec_1_1Date.html">Date</a> &amp;&#160;</td>
          <td class="paramname"><em>date</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>以Date对象构造 </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="afcc17c2d59e9e7cbe996a8c7ae8f9fcd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classec_1_1Time.html">Time</a> &amp; ec::Time::addSecond </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>second</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>加/减 秒 </p>

</div>
</div>
<a class="anchor" id="a3abe7344a991a11875c565beb31c099f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classec_1_1Time.html">Time</a> ec::Time::clone </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>克隆当前对象 </p>

</div>
</div>
<a class="anchor" id="a3e049ae0ad518e44d72e86172f16e15d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ec::Time::getDayPassed </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classec_1_1Time.html">Time</a> &amp;&#160;</td>
          <td class="paramname"><em>refTime</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>计算经过的天数 </p>

</div>
</div>
<a class="anchor" id="a672781d41bfac66415d3f91bbea6f453"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ec::Time::getFullDays </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>距离1970-01-01 00:00:00的天数 </p>

</div>
</div>
<a class="anchor" id="a404a498705d89d99387c67b7a70f12b9"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int64_t ec::Time::ms </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取毫秒时间戳 </p>

</div>
</div>
<a class="anchor" id="a126a19d88d9204dabad89a540de2ef94"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classec_1_1Time.html">Time</a> &amp; ec::Time::nextPeriod </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classec_1_1Time.html#a5a62816a9c7f2df3ca66f54d1544ea46">Time::PeriodType</a>&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>times</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>到下一周期 </p>

</div>
</div>
<a class="anchor" id="a649973da162f122234542498d17cfa5f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec::Time::set </td>
          <td>(</td>
          <td class="paramtype">time_t&#160;</td>
          <td class="paramname"><em>stamp</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置时间戳 </p>

</div>
</div>
<a class="anchor" id="add5a030523e1ea07021c81628ee545f6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classec_1_1Time.html">Time</a> &amp; ec::Time::sharpHour </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置为一小时的开始 </p>

</div>
</div>
<a class="anchor" id="acc1ad308e6af04151fcc85818a45936c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classec_1_1Time.html">Time</a> &amp; ec::Time::sharpMinute </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置为一分钟的开始 </p>

</div>
</div>
<a class="anchor" id="a01d690a321ce3cdc18dc627761300c44"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">time_t ec::Time::stamp </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取时间戳 </p>

</div>
</div>
<a class="anchor" id="af0bc39da85cdbf23c8513a1202d206ff"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classec_1_1Date.html">Date</a> ec::Time::toDate </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>转换为Date对象 </p>

</div>
</div>
<a class="anchor" id="ae1344f099583fe278563d3d5105025bf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">time_t ec::Time::utcStamp </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取UTC时间戳 </p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="aea1823b361d59f11f6a0a39b9cd4faea"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const time_t ec::Time::DAY_SECONDS = <a class="el" href="classec_1_1Time.html#a7235624a504da44bc4e361bc44184324">HOUR_SECONDS</a>*24</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>每天包含秒数 </p>

</div>
</div>
<a class="anchor" id="a7235624a504da44bc4e361bc44184324"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const time_t ec::Time::HOUR_SECONDS = 3600</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>每小时包含秒数 </p>

</div>
</div>
<a class="anchor" id="a62df9dad0fe2b844c4402643bf41e99f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const time_t ec::Time::MINUTE_SECONDS = 60</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>每分钟包含秒数 </p>

</div>
</div>
<a class="anchor" id="a7b380e6d270256754d650e7ab7a70237"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const time_t ec::Time::SECOND_MS = 1000</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>每秒包含毫秒数 </p>

</div>
</div>
<a class="anchor" id="a785218cc22a7610f035cb6b36c84e62c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const time_t ec::Time::WEEK_SECONDS = <a class="el" href="classec_1_1Time.html#aea1823b361d59f11f6a0a39b9cd4faea">DAY_SECONDS</a>*7</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>每周包含秒数 </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>include/ec/<a class="el" href="date_8h_source.html">date.h</a></li>
<li>src/date.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Jul 12 2016 14:15:08 for ec by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>
